package com.ebt.m.commons.mvp;

import android.content.Context;

import com.ebt.m.commons.mvp.model.IModel;

/**
 * 负责完成View于Model间的交互
 * Created by archer.qi on 2017/2/6.
 * Updated by allen on 2018/7/26.
 */
public abstract class BasePresenter<V extends IView, M extends IModel> implements IPresenter {
    public V mView;
    protected M mModel;
    public Context mContext;

    public BasePresenter(Context context, V view) {
        mContext = context;
        mView = view;
    }

    public void onDestroy() {
        mContext = null;
        mView = null;
    }

//    public abstract void start();
}
